<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/formdiv.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript">

	var resizewindow= null;

	window.onresize = function(){
		var h = $(window).height();
		if(resizewindow!=h){
			sizewindow();
			resizewindow=h;
		}
	}

	function sizewindow(){
		var h = $(window).height();
		if(document.getElementById("mainbodybottonauto")){
			$('.managebottonadd').css({height:h-40});
		}
	}
	var createmain_js_linknum_empty  = "[%$ST.createmain_js_linknum_empty%]";
	var createmain_js_add_ok  = "[%$ST.createmain_js_add_ok%]";
	var createmain_js_add_no  = "[%$ST.createmain_js_add_no%]";
	var iframename = "[%$iframename%]";
	$(document).ready(function(){
		var h = '[%$iframeheightwindow%]';
		$('.managebottonadd').css({height:h-40});
		var optionsseo = {
			beforeSubmit: seo_formverify,
			success:seo_success
		};
		$("#createseo").submit(function() {
			$(this).ajaxSubmit(optionsseo);
			return false;
		});
	})
	function seo_formverify(formData, jqForm, options) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		if(get['linknum'].match(/^[1-9]{1}[0-9]*$/ig)==null) {
			document.createseo.linknum.focus();
			alert(createmain_js_linknum_empty);
			return false;
		}
		parent.windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false);
	}
	function seo_success(options){
		parent.closeifram();
		var tab=document.getElementById("createseotab").value;
		if (options=='true'){
			alert(createmain_js_add_ok);
		}else{
			alert(createmain_js_add_no+options);
		}
		if (tab=='true'){
			parent.onaletdoc();
		}
	}
</script>
</head>

<body>
<form method="post" name="createseo" id="createseo" action="index.php?archive=createseomain&action=baidusave">
<input type="hidden" name="tab" id="createseotab" value="[%$tab%]">
<div id="mainbodybottonauto" class="managebottonadd">
	<div class="maindobycontent">
		<div class="suggestion">
			<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="colorgorningage">[%$ST.createmain_baidu_mess_title%]</span></span>
		</div>
		<div class="manageeditdiv">
			<div class="maneditcontent">
				<table class="formtable">
					<tr class="trstyle2">
						<td class="trtitle01">[%$ST.createmain_seo_add_path%]</td>
						<td class="trtitle02"><a target="_blank" href="[%$adminurl%][%$htmldir%]baidusitemap.xml">/[%$htmldir%]<span id="sitepath">baidusitemap.xml</span></a></td>
					</tr>
					<tr class="trstyle2 displaytrue" id="validatetextdiv">
						<td class="trtitle01">[%$ST.createmain_seo_add_linknum%]</td>
						<td class="trtitle02">
							<input type="text" name="linknum" size="10" maxlength="3" value="1000" class="infoInput"/>
							<span class="cautiontitle">[%$ST.createmain_seo_add_linknum_mess%]</span>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<div id="downbotton">
	<div id="subbotton">
		<table border="0" width="100%">
			<tr>
				<td><input type="submit" name="Submit" value="[%$ST.botton_cerathtml%]" class="button orange" /></td>
			</tr>
		</table>
	</div>
</div>
</form>
</body>

</html>